package hu.tortavar2.client.view.product;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.HeadingElement;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.dom.client.UListElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Widget;

public class ProductItemDetailView_ extends Composite {

	private static ProductItemDetailView_UiBinder uiBinder = GWT
			.create(ProductItemDetailView_UiBinder.class);

	interface ProductItemDetailView_UiBinder extends
			UiBinder<Widget, ProductItemDetailView_> {
	}

	public ProductItemDetailView_() {
		initWidget(uiBinder.createAndBindUi(this));
		setFields();
	}
	String id;
	@UiField HTMLPanel grid_01;
	@UiField HTMLPanel ribbon_02;
	@UiField HTMLPanel prodBox02;
	@UiField HTMLPanel description;
	
	@UiField Image image;
//	@UiField HeadingElement title;
//	@UiField SpanElement price;
//	@UiField SpanElement available;
//	@UiField UListElement extra_info;
	
	private void setFields() {
//		grid_01.getElement().setClassName("grid_01");
//		ribbon_02.getElement().setClassName("ribbon-02");
//		prodBox02.getElement().setClassName("prod-box-02");
//		image.getElement().setClassName("prod-image");
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public void setImageUrl(String url) {
		this.image.setUrl(url);
	}
	
	public void setRibbon(String ribbonType) {
		this.ribbon_02.addStyleName(ribbonType);
	}
	
//	public void setPrice(String price) {
//		this.price.setInnerText(price);
//	}
//	
//	public void setWhereToBuy(String whereToBuy) {
//		this.available.setInnerText(whereToBuy);
//	}
	
//	public void setProductTitle(String title) {
//		this.title.setInnerText(title);
//	}
	
//	public void setDescription(String description) {
//		this.description.getElement().setInnerText(description);
//	}
	
//	public void setExtraInfo(List<String> extraInfo) {
//		extraInfo.addAll(extraInfo);
//	}
}
//